The following plots take the Weibull distribution (Weber distribution, Weibull distribution) as an exampleFor Weibull distribution (Weber distribution, Weibull distribution), please refer to my blog http://www.cnblogs.com/wwxbi/p/6141501.htmlLibrary (GGPLOT2)# both D and Y here are in order of sizedYDfGgplot (Df,aes (x
a PDF graphic of the a=2,b=5 gamma distributionThe syntax for generating a gamma distribution random number is:Gamrnd (a,b,[m,n,p,...]) One . lognrnd ()Generates random numbers that obey a logarithmic normal distribution. It has two parameters: Mu and Sigma, followed by this random number to take the logarithm after the mean is MU, the standard deviation is the normal distribution of Sigma. Is the Mu=-1, sigma=1/1.2, logarithmic normal distribution of the PDF graphic.The syntax for generating
Rank Distribution
Signrank
Gamma distribution
Gamma
T distribution
T
Geometric distribution
Geom
Evenly distributed
Unif
Super Geometric distribution
Hyper
Weibull distribution
Weibull
Logarithmic normal distribution
Lnorm
Wilcoxon Rank and distribution
Wilcox
If you do not spec
chisq Normal Distribution Norm Index Distribution exp Poisson distribution POIs F distribution F Wilcoxon symbol rank distribution Signrank Gamma distribution gamma T Distribution T geometric distribution geom Uniform distribution unif hypergeometric distribution hyper Weibull distribution Weibull logarithmic normal distribution lnorm Wilcoxon rank and distribution WilcoxGenerate a
standard_exponential ([size])
The standard exponential distribution
Standard_gamma (shape[, size])
Standard Gamma distribution
Standard_normal ([size])
Standard normal distribution (mean=0, stdev=1).
standard_t (df[, size])
Standard Student's t distribution with DF degrees of freedom.
Triangular (left, mode, right[, size])
Triangular distribution
Uniform ([Low, high, size])
Evenly d
in cloth
Gamma
Geometric distribution
Geom
Super Geometric distribution
Hyper
Logarithmic normal distribution
Lnorm
Logistic distribution
Logis
Multi-item Distribution
Multinom
Negative two-item distribution
Nbinom
Normal
Norm
Poisson distribution
POIs
Wilcoxon symbol Rank Distribution
Signrank
T distributio
distribution), hypergeometric distribution (hypergeometric distribution), Poisson Distribution (Poisson distribution)Continuousdistribution (continuous distribution): Uniform distribution (evenly distributed), normal distribution/gaussiandistribution (normal distribution/Gaussian distribution), Exponential distribution (exponential distribution), lognormal distribution (logarithmic normal distribution), gamma distribution (gamma distribution), beta distribution (beta distribution ), Dirichlet d
.
weibullvariate
(
Alpha,
beta
)
Weibull distribution. Alpha is the scale parameter and Beta is the shape parameter.
Alternative Generator:
class
Random.
Systemrandom
([
seed]
)
Class that uses the os.urandom () function for generating random numbers from sources provided by the operating Sy Stem. Not available on all systems. Does not rely in soft
has been returned to the teacher, so many distribution ╮(╯▽╰)╭★random.random () returns a random floating-point number in [0.0, 1.0].★random.uniform (A, B) returns the random floating-point number in [A, b]Random.triangular (low=0.0, high=1.0, Mode=none)Random.betavariate (alpha, beta) Beta distributionRandom.expovariate (LAMBD) Index distributionRandom.gammavariate (alpha, beta) gamma distributionRandom.gauss (Mu, sigma) Gaussian distributionRandom.lognormvariate (Mu, sigma) Log normal distrib
are also logarithmic distributions, normal distribution, Pareto distributions, and Weibull distributions, which can be found in the following links:
Docs.python.org/library/random.html
Suppose we have a group of people in a dance competition, in order to be fair, we have to randomly arrange their appearances. Below we use the random package to implement:
Import randomall_people = [' Tom ', ' Vivian ', ' Paul ', ' Liya ', ' Manu ', ' Daniel ', ' Shawn
, Cauchy, Rayleigh, Rayleigh_tail, Landau, Levy, Levy_skew, Gamma, flat, Lognormal, CHISQ, fdist, tdist, beta, Logistic, Pareto, dir_2d, Weibull, Gumbel1, Gumbel2, Dirichlet. For discrete distributions, a finite value can be used Gsl_ran_discrete_preproc () to convert a distribution density column (or a scale factor) into a gsl_ran_discrete_t type structure and pass it to the Gsl_ran_ Discrete () generates a random number, gsl_ran_discrete_pdf () prod
distribution, Cauchy distribution, hypergeometric distribution, Poisson distribution, Bernoulli, and some special distributions such as Kolmogorov-smirnov, Nakagami, Weibull, and von-mises distributions. Also includes multivariate distributions such as multivariate normal distribution, multinomial, Independent, Joint and Mixture distributions.1.2.5 hypothesis Test (hypothesis Tests)Over 35 statistical hypothesis tests, including unidirectional and bi
understand these distributions):Random.gauss (MU,SIGMA) # randomly generates random numbers that conform to the Gaussian distribution. The Mu,sigma is a Gaussian distribution of two parameters.Random.expovariate (LAMBD) # randomly generates random numbers that conform to the exponential distribution. LAMBD is an exponential distribution of the number of parameters.There are also logarithmic distributions, which are normally distributed. Pareto distribution.
conforms to the Gaussian distribution, and the Mu,sigma is two parameters of the Gaussian distribution.Random.expovariate (LAMBD) # randomly generates a random number that conforms to the exponential distribution, LAMBD is the parameter of the exponential distribution.There are also logarithmic distributions, normal distribution, Pareto distributions, Weibull distributions.Suppose we have a group of people in a dance competition, in order to be fair,
integers
5.2 Bernoulli type distribution: (only yes/no two results, probability of a p, a 1-p)Bernoulli_distribution Bernoulli distribution binomial_distribution Two-item distribution geometry_distribution geometrical distribution negative_biomial_distribut Ion negative two-item distribution
5.3 rate-based Distributions:Distribution of exponential_distribution exponential distribution of poisson_distribution Poisson distribution gamma_distribution weibull_distribution
), hypergeometricdistribution (hypergeometric distribution), Poisson Distribution (Poisson distribution)Continuous distribution (continuous type distribution): Uniformdistribution (evenly distributed), normal Distribution/guassian distribution (normal distribution/Gaussian distribution), Exponentialdistribution (exponential distribution), lognormal distribution (logarithmic normal distribution), gammadistribution (gamma distribution), beta distribution (beta distribution ), Dirichlet distributio
), hypergeometricdistribution (hypergeometric distribution), Poisson Distribution (Poisson distribution)Continuous distribution (continuous type distribution): Uniformdistribution (evenly distributed), normal Distribution/guassian distribution (normal distribution/Gaussian distribution), Exponentialdistribution (exponential distribution), lognormal distribution (logarithmic normal distribution), gammadistribution (gamma distribution), beta distribution (beta distribution ), Dirichlet distributio
! 2.1 Common types of continuous distributions in statistics:1. Evenly distributed 2.Normal distribution-standard normal distribution 3. χ2 (Chi-square) Distribution 4.F distribution 5.T distribution 6. Exponential distribution--notice the difference from the Power law distribution 7.γ (gamma) Distribution 8.weibull distribution 9.β (Beta) distribution2.2 Connection between continuous distributionsThe normal distribution is the core of the statistics.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.